package com.itluma.isWOak.service;
import com.itluma.isWOak.pojo.AdminInfo;
import com.itluma.isWOak.pojo.FunctionInfo;
import com.itluma.isWOak.pojo.RoleInfo;

import java.util.List;

public interface AdminRoleService{
    /**
     * 根据用户获取角色
     * @param admin
     * @return
     */
    List<RoleInfo> findByAdmin(AdminInfo admin);

    /**
     * 根据用户获取权限
     * @param admin
     * @return
     */
    List<FunctionInfo> findbyAdmin(AdminInfo admin);
    void modifyAdminRole(Integer adminId, Integer... roleIds);
}
